package com.company.service;

import com.company.dao.GuanjianciDao;
import com.company.entity.Guanjianci;

public class GuanjianciService {
	private GuanjianciDao guanjianciDao;
	private Guanjianci guanjianci;


	public GuanjianciDao getGuanjianciDao() {
		return guanjianciDao;
	}

	public void setGuanjianciDao(GuanjianciDao guanjianciDao) {
		this.guanjianciDao = guanjianciDao;
	}

	public Guanjianci getGuanjianci() {
		return guanjianci;
	}

	public void setGuanjianci(Guanjianci guanjianci) {
		this.guanjianci = guanjianci;
	}

	public String query() {
		return guanjianciDao.query().getGuanjianci();
	}


	public void update(Guanjianci guanjianci) {
		try {
			guanjianciDao.update(guanjianci);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
